Hi Troy,
I added some code for External Feed Hold using Input Bit 21. Please give it a try. I Uploaded to your "After" folder as Version 6.
There
was some stuff for an EStop Input that debounced an input and so forth that never did anything with the result in both your before and after versions. So I deleted it.
Regarding Mach3 - Stop. I think you can just configure an OEM Trigger in Mach3 for that. In Mach3 Ports & Pins | Inputs | OEM Trigger #1 configure for Port #1 and the appropriate Input and Polarity. Then in Mach3 |Config | System HotKeys | Trigger OEM Code #1 set to 1003 (Stop).
HTH Regards TK
Group: DynoMotion |
Message: 7488 |
From: tmday7 |
Date: 5/17/2013 |
Subject: Re: External Start,Pause and Stop |
Hi Tom,
C program works great.:) I added another version with A axis in Step Direction mode.
Man i forgot all about the OEM Triggers. :} Stop button now working also.
Now to get 4th axis fine tuned.
Thanks again Tom for great support as always,
Troy
--- In DynoMotion@yahoogroups.com, Tom Kerekes wrote:
>
> Hi Troy,
>
> I added some code for External Feed Hold using Input Bit 21. Please give it a try. I Uploaded to your "After" folder as Version 6.
>
>
> There was some stuff for an EStop Input that debounced an input and so forth that never did anything with the result in both your before and after versions. So I deleted it.
>
> Regarding Mach3 - Stop. I think you can just configure an OEM Trigger in Mach3 for that. In Mach3 Ports & Pins | Inputs | OEM Trigger #1 configure for Port #1 and the appropriate Input and Polarity. Then in Mach3 |Config | System HotKeys | Trigger OEM Code #1 set to 1003 (Stop).
>
> HTH
> Regards
> TK
>
>
>
> ________________________________
> From: tmday7 <tmday88@...>
> To: DynoMotion@yahoogroups.com
> Sent: Friday, May 17, 2013 11:58 AM
> Subject: [DynoMotion] Re: External Start,Pause and Stop
>
>
>
> Â
> After more testing the FeedHold code i added to my main init C program is not working correctly. Started causing All axis disabled in Mach3 and was not showing any messages in the Kmotion Console so i have removed the Feed Hold code.
>
> Can someone give be some direction on what to do? Ive uploaded my init C program Mach3_CL_PMDX-125(Version5,1).c here...
> http://tech.groups.yahoo.com/group/DynoMotion/files/KFLOP%20MillDrill/C%20Programs/After%20Interface/
>
> Any help much appreciated.
> Troy
>
> --- In DynoMotion@yahoogroups.com, "tmday7" wrote:
> >
> > Hello again,
> > Need some C programming help. I have external buttons for Cycle Start, Feed Hold(or pause) and Stop. Using the plugin in Mach3 i have Cycle Start working.
> > By using this example code i added to my main init C program, Feed Hold( or Pause) is working.
> >
> > main()
> > {
> > for (;;) // loop forever
> > {
> > WaitNextTimeSlice();
> >
> > if (ReadBit(21)) // Watch an external input switch
> > {
> > StopCoordinatedMotion(); //feedhold
> > }
> > }
> > }
> >
> > How do i get my Stop button to work like it does in Mach3?
> >
> > Thanks,
> > Troy
> >
>
|
|
| |